//
//  MyCollectionViewCell.m
//  UIComprehensive
//
//  Created by lanou3g on 16/1/28.
//  Copyright © 2016年 徐强. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self addAllView];
    }
    return self;
}
#pragma mark - item的布局
- (void)addAllView{
    
    self.imV = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height * 0.8)];
    [self.contentView addSubview:self.imV];
    
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(0, self.frame.size.height * .8, self.frame.size.width, self.frame.size.height * .2)];
    self.label.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.label];
    
}

@end
